package com.xayy.health.ds.service;


import cn.kawins.base.result.CheckResult;
import com.xayy.health.ds.model.DsHealthAlgorithmManage;

import com.xayy.health.mgt.model.HealthAlgorithmManage;
import com.xtck.ha.common.core.web.service.IBaseService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
* @ClassName: DsHealthAlgorithmManageService
* @Description: DsHealthAlgorithmManage业务访问接口
* @author liuyuan
* @date 2025-07-07
*/
public interface DsHealthAlgorithmManageService extends IBaseService<DsHealthAlgorithmManage> {
    /**
     * 报错算法信息
     * @param healthAlgorithmManage 算法信息
     * @param algorithmFile 算法文件
     * @return 结果日志
     */
    CheckResult<?> saveAlgorithmInfo(DsHealthAlgorithmManage healthAlgorithmManage, MultipartFile algorithmFile);

    /**
     * 启动算法服务
     * @param healthAlgorithmManage 算法信息
     * @return 结果日志
     */
    CheckResult<?> startAlgorithmServer(DsHealthAlgorithmManage healthAlgorithmManage);

    /**
     * 停止算法服务
     * @param healthAlgorithmManage 算法实体
     * @return 结果日志
     */
    CheckResult<?> stopAlgorithmServer(DsHealthAlgorithmManage healthAlgorithmManage);

    /**
     * 根据类型获取可用算法列表
     * @param type 1:剔野,2:填充,3:平滑,4:事后诊断,5:趋势预测
     * @return 算法列表信息
     */
    List<DsHealthAlgorithmManage> getAlgorithmByType(Integer type);
}

